home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacAddict 83
/
MacAddict_083_2003-07.iso
/
pc
/
Software
/
Internet & Communication
/
NetBarrier X demo.dmg
/
NetBarrier X Install.app
/
Contents
/
Resources
/
NetUpdate.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
2002-12-30
|
896b
|
39 lines
#!/bin/sh
## Kill the NetUpdate Installer
ps -axcopid,command | grep "NetUpdate Installer" | awk '{ system("kill -9 "$1) }'
## Kill the Application
ps -axcopid,command | grep -e 'NetUpdate$' | awk '{ system("kill -9 "$1) }'
## remove /Library/Intego/netupdated.bundle
if [ -d /Library/Intego/netupdated.bundle ]; then
rm -r /Library/Intego/netupdated.bundle
fi
## remove /Library/StartupItems/NetUpdate
if [ -d /Library/StartupItems/NetUpdate ]; then
rm -r /Library/StartupItems/NetUpdate
fi
## remove /Library/Preferences/Intego/NetUpdate
if [ -d /Library/Preferences/Intego/NetUpdate ]; then
rm -r /Library/Preferences/Intego/NetUpdate
fi
## remove /Applications/NetUpdate.app
if [ -d /Applications/NetUpdate.app ]; then
rm -r /Applications/NetUpdate.app
fi
## remove /Library/Receipts/
if [ -d /Library/Receipts/NetUpdate.pkg ]; then
rm -r /Library/Receipts/NetUpdate.pkg
fi